package ar.edu.caece.compiler.grammar.nonterminals;

import ar.edu.caece.compiler.grammar.NonTerminalSymbol;
import ar.edu.caece.compiler.grammar.terminals.CadenaToken;

public class TEXTO1 extends NonTerminalSymbol implements TEXTO{
	
	private CadenaToken cadena;
	private TEXTOA textoa;

	public TEXTO1(CadenaToken string, TEXTOA textoa) {
		super();
		this.cadena = string;
		this.textoa = textoa;
	}

	@Override
	public String getRepresentation() {
		return "{"+this.getClass().getSimpleName()+" -> "+cadena.getRepresentation()+" "+textoa.getRepresentation()+"}";
	}

	public CadenaToken getString() {
		return cadena;
	}

	public TEXTOA getTextoa() {
		return textoa;
	}

}
